import { deleteModal } from "@/hooks/deleteModal";

// 删除数据
const handleDelete = (url,{id,name}) => {
  deleteModal(`确定要删除当前数据-[${name}]`, async () => {
    try {
      await url(id)
      Message.success("操作成功");
      fetchData();
    } catch (err) {
      console.log(err);
    }
  });
};